package edu.ssm.campusAssistant.exception;

import edu.ssm.campusAssistant.constant.RspConstants;

/**
 * 标题:业务校验失败
 * 描述:
 *
 * @autho LXF
 * @date 2019/4/8 16:12
 */
public class BusinessException extends RuntimeException {
    /**
     * 操作编码
     */
    private String msgCode;

    public String getMsgCode() {
        return msgCode;
    }

    public void setMsgCode(String msgCode) {
        this.msgCode = msgCode;
    }

    public BusinessException(String msgCode, String message) {
        super(message);
        this.msgCode = msgCode;
    }

    public BusinessException(String message) {
        super(message);
        this.msgCode = RspConstants.RSP_CODE_BUSI_SERVICE_ERROR;
    }
}
